import nci60.data.protein.ProteinUniprotSwissProt

def config = new ConfigSlurper().parse(new File('scripts/get_uniprot_ids.conf').toURL())

new File(config.uniprotIdFile).withWriter { out ->
    ProteinUniprotSwissProt.executeQuery('select distinct p.acNumber from ProteinUniprotSwissProt p').each(){line->
        out.writeLine(line)
    }
}
